package yxy.game.pm2.module.jadeseal;

//玉玺
public class JadeSeal {

	private int camp;	//阵营
	private boolean open;	//是否开启 开启消耗本阵营五星武将
	
	//升级
	private int exp;	//玉玺经验
	private int level;	//玉玺等级
	
	//进阶
	private int stagelevel;  //玉玺阶数等级
	private int stagestage;	 //玉玺阶数阶段
	
	public int getCamp() {
		return camp;
	}
	public void setCamp(int camp) {
		this.camp = camp;
	}
	public boolean isOpen() {
		return open;
	}
	public void setOpen(boolean open) {
		this.open = open;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public int getStagelevel() {
		return stagelevel;
	}
	public void setStagelevel(int stagelevel) {
		this.stagelevel = stagelevel;
	}
	public int getStagestage() {
		return stagestage;
	}
	public void setStagestage(int stagestage) {
		this.stagestage = stagestage;
	}

	// func
	
	public int countmgid() {
		return camp * 10000 + level;
	}
	
	public int countnextmgid() {
		return camp * 10000 + level + 1;
	}
	
	public int countmrid() {
		return camp * 10000 + stagelevel * 10 + stagestage;
	}
	
	public int countnextmrid() {
		if(stagestage + 1 > 5) {
			return camp * 10000 + (stagelevel + 1) * 10 + 0;
 		}
		return camp * 10000 + stagelevel * 10 + stagestage + 1;
	}
	
}
